package com.rtx.wms.std.asn.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rtx.edi.model.api.bo.ApiMappingInfoBo;
import com.rtx.model.dto.edi.EdiInnerRequestDTO;
import com.rtx.wms.std.asn.bean.ApiReceipt;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zcw
 * @since 2023-04-20
 */
public interface ApiReceiptService {

    /**
     * 新增入库单
     * @param whseid
     * @param ApiReceipt
     */
    void addApiReceipt(String whseid, ApiReceipt apiReceipt,EdiInnerRequestDTO dto);

    /**
     * 入库单写入WMS
     * @param whseid
     * @param wrapper
     */
    List<ApiReceipt> selectApiReceiptByWrapper(String whseid, Wrapper<ApiReceipt> wrapper,ApiMappingInfoBo bo);

    /**
     * 更新入库单
     * @param update
     */
    void updateByWrapper(String whseid,LambdaUpdateWrapper<ApiReceipt> update);
    
    List<ApiReceipt> selectApiReceiptByWrapperNoDetail(String whseid, Wrapper<ApiReceipt> wrapper);
}
